import { FileSchema } from './fileSchema'

export interface ServiceTopicSchema {
  caseid: string
  complete_datetime: number
  complete_info: string
  complete_type: string
  create_datetime: number
  id: string
  latest_arrive_datetime: string
  name: string
  operator: string
  operatorid: string
  status: number
  type: string
  [k: string]: any
}

export interface ServiceSchema {
  action_subject: string
  address: string
  addressid: string
  area: string
  arrive_datetime: number
  arrive_info: string
  caseid: string
  content: string
  contract: string
  contractid: string
  create_datetime: number
  documentid: string
  email: string
  email_content: string
  email_title: string
  ems_infonow: string
  emscode: string
  fileid: string
  id: string
  islast_known_place: number
  mobile: string
  notary: string
  notaryid: string
  operator: string
  operatorid: string
  processer: string
  processer_tel: string
  processerid: string
  publication_media: string
  remark: string
  send_datetime: number
  sender: string
  senderid: string
  sms_content: string
  status: string
  status_ex: string
  structure: string
  subject_names: string
  subjectids: string
  tel: string
  tel_office: string
  title: string
  to_type: string
  topic_name: string
  topicid: string
  zip_code: string
  [k: string]: any
}

export interface EServiceContent {
  content: string
  documents?: FileSchema[]
  email_content: string
  smsObject: {
    smsInfo: {
      applicant_name: string
      arbitrators: string
      assign_datetime: string
      business_address: string
      casenoDesc: string
      cause_action: string
      closure_type: string
      deliverName: string
      hearing_datetime: string
      respondent_name: string
      sCasenoDesc: string
      subject_casecode: string
    }
    templateCode: string
  }
  sms_content: string
  [k: string]: any
}

export interface ServiceResultSchema {
  address: string
  address_type: string
  addressid: string
  arrive_datetime: string
  arrive_info: string
  caseid: string
  create_datetime: number
  deliverid: string
  feedback_datetime: number
  feedback_info: string
  from_address: string
  id: string
  linkcode: string
  operator: string
  operatorid: string
  orderno: number
  scaseno: string
  status: string
  to_type: string
}

export interface ServiceFeedbackSchema {
  create_datetime: number
  deliverid: string
  feedback_datetime: number
  feedback_info: string
  feedback_remark: string
  id: string
  operator: string
  operatorid: string
  resultid: string
  status: number
  to_type: string
  type: string
}
